package cn.zjgsu.mapping;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.zjgsu.domain.TbCourse;


public interface TbCourseMapper {


	List<String> getYear(int fkTeacher);
	
	List<String> getStudentYear(int fkStudent);

	List<String> findCourseByYear(@Param(value="fkTeacher")Integer fkTeacher, @Param(value="year")String year);

	long findPkCourse(@Param(value="fkTeacher")Integer fkTeacher, @Param(value="year")String year, @Param(value="courseName") String courseName);

	List<TbCourse> findCourseRecordByYear(@Param(value="fkTeacher")Integer fkTeacher, @Param(value="year")String year);

	TbCourse findCourseById(int pkCourse);

	void updateByPrimaryKeySelective(TbCourse course);

	List<TbCourse> findCourseRecordByStudentYear(@Param(value="fkStudent")Integer fkStudent,@Param(value="year") String year);

}
